package com.yuyh.library.constant;

import android.os.Environment;

import com.yuyh.library.AppUtils;

/**
 * 常量
 * Created by Joe on 2017/1/2.
 */

public class Constant {

    /**
     * 扫描类型
     * 条形码或者二维码：REQUEST_SCAN_MODE_ALL_MODE
     * 条形码： REQUEST_SCAN_MODE_BARCODE_MODE
     * 二维码：REQUEST_SCAN_MODE_QRCODE_MODE
     */
    public static final String REQUEST_SCAN_MODE = "ScanMode";
    /**
     * 条形码： REQUEST_SCAN_MODE_BARCODE_MODE
     */
    public static final int REQUEST_SCAN_MODE_BARCODE_MODE = 0X100;
    /**
     * 二维码：REQUEST_SCAN_MODE_ALL_MODE
     */
    public static final int REQUEST_SCAN_MODE_QRCODE_MODE = 0X200;
    /**
     * 条形码或者二维码：REQUEST_SCAN_MODE_ALL_MODE
     */
    public static final int REQUEST_SCAN_MODE_ALL_MODE = 0X300;

    public static final int SENDING = 0;//消息发送中
    public static final int COMPLETED = 1;//消息发送成功
    public static final int SENDERROR = 2;//消息发送失败

    public final static int NET_STATE = 1;//有网络
    public final static int NOT_NET_STATE = 2;//无网络

    public final static String APK_URL = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/download";//系统默认不通知

    public final static int HEAD_IMG_SIZE = (int) (50 * AppUtils.getAppContext().getResources().getDisplayMetrics().density);//头像大小
    public final static int CHAT_MESSAGE_IMG_SIZE_SCALE = 3;//聊天界面的图片显示大小比例
    public final static int HEAD_IMG_CIRCULAR = 5;//头像大小圆角
}
